@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('/res/font/AlibabaPuHuiTi.woff2') format('woff2');
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'AlibabaPuHuiTi', Arial, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 顶部区域样式 */
.top-section {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.top-background {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(5px);
}

.top-sign-0 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.top-sign-1 {
    font-size: 1.2rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主内容区域 */
.main-content {
    padding: 20px 0;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.content-container {
    width: 45%;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 300px - 100px);
}

/* 表单样式 */
.message-form {
    background-color: #111;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.message-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.95rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
    font-family: 'AlibabaPuHuiTi', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff7e79;
    background-color: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 126, 121, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #888;
}

/* 提交按钮样式 */
.submit-button {
    background-color: #ff7e79;
    color: #000;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background-color: #ff8a86;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 121, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* 提示信息样式 */
.message-tip {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.message-tip.success {
    background-color: #28a745;
    color: #fff;
}

.message-tip.error {
    background-color: #dc3545;
    color: #fff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 留言列表样式 */
.messages {
    background-color: #111;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.messages h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
}

.comment {
    padding: 20px;
    margin-bottom: 16px;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.comment-name {
    font-weight: 600;
    color: #ff7e79;
    font-size: 1rem;
}

.comment-date {
    color: #888;
    font-size: 0.85rem;
}

.comment-message {
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.comment-contact {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-container {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .content-container {
        width: 90%;
        padding: 0 10px;
    }
    
    .message-form, .messages {
        padding: 24px;
    }
    
    .top-sign-0 {
        font-size: 1.8rem;
    }
    
    .top-sign-1 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-container {
        width: 95%;
    }
    
    .message-form, .messages {
        padding: 20px;
    }
    
    .top-section {
        height: 250px;
    }
    
    .top-sign-0 {
        font-size: 1.5rem;
    }
    
    .top-sign-1 {
        font-size: 0.9rem;
    }
}